//
//  BannerEntity.m
//  QQplayground
//
//  Created by zhangxy on 2018/6/28.
//  Copyright © 2018年 zhang. All rights reserved.
//

#import "BannerEntity.h"

@implementation BannerEntity

- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        self = [BannerEntity yy_modelWithDictionary:dictionary];
        _typeModel = [[NavTypeEntity alloc] initWithDictionary:dictionary[@"data"]];
    }
    return self;
}


+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper
{
    return @{
             @"banner_id" : @"id",
             @"image_url" : @"image_url",
             @"link":@"link",
             @"type":@"type"
             };
}
@end
